import Api from '@/api'
import config from '@/config'

export default class UserService {
    async add (data = {}, headers = {}) {
        return await (new Api).post({
            url: config.apiList.add,
            data,
            headers
        })
    }

    async login (data = {}, headers = {}) {
        return await (new Api).post({
            url: config.apiList.login,
            data,
            headers
        })
    }
}